<%-- 
    Document   : ItemDetails
    Created on : 2012-12-2, 20:11:41
    Author     : Timmy
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="<c:url value='/css/main.css'/>" rel="stylesheet" type="text/css"/>
         <link href="<c:url value="/css/jquery-ui-1.9.2.custom.min.css" />" rel="stylesheet" type="text/css" />
         <script type="text/javascript" src="<c:url value="/scripts/jquery.js" />" ></script>
         <script type="text/javascript" src="<c:url value="/scripts/jquery-ui-1.9.2.custom.min.js" />" ></script>
        <script type="text/javascript">
              var blindReview= '<s:property value="oneItem.isBlindReview" />' ;
              var category = '<s:property value="oneItem.Category" />';
              $(document).ready(function(){
                  $("#submitBtn").button();
                  $("#backBtn").button().bind("click",function(){
                      window.location.href= "<s:url value="/conference/list_all" />";
                  });
                  
                  $("#blindreview").val(blindReview);
                  $("#category").val(category);
                  
                    $("#submitBtn").bind("click",function(){
                            $("#modifyForm").submit();
                    });
              });
              
             
        </script>
    </head>
    <body>
        <h1>Modify Item for conference <s:property value="oneItem.ConferenceName" /></h1>
        <s:form namespace="/item" action="processModify_%{conferenceName}" method="post" id="modifyForm">
            <input type="hidden" name="itemName" id="itemName" value="<s:property value="itemName" />" />
            
            <table class="borderAll">
                <tr>
                   <th>Item Name</th>
                   <th>Item Description</th>
                   <th>Category</th>
                   <th>Uploaded File</th>
                   <th>Status</th>
                   <th>SellPrice</th>
                   <th>Blind Review</th>
               </tr>
               <tr>
                   <td>
                       <s:property value="oneItem.ItemName" />
                   </td>
                   <td>
                     <input name="oneItem.ItemDescription"  value="<s:property value="oneItem.ItemDescription" />" />
                   </td>
                   <td>
                       <select name="oneItem.Category" id="category">
                           <option value="Paper Prensentation">Paper Presentation</option>
                           <option value="Work Shop">Work Shop</option>
                           <option value="Doctoral Symposium">Doctoral Symposium</option>
                           <option value="Tutorial">Tutorial</option>
                       </select>
                       
                   </td>
                   <td>
                       <s:property value="oneItem.FilePath" />
                   </td>
                   <td>
                       <s:property value="oneItem.Status" />
                   </td>
                   <td>
                     <input type="text" name="oneItem.SellPrice"  value="<s:property value="oneItem.SellPrice" />" />
                   </td>    
                   <td>
                       <select name="oneItem.isBlindReview" id="blindreview">
                           <option value="True">True</option>
                           <option value="False">False</option>
                       </select>
                       
                   </td>
               </tr>
               <tr>
                   <td colspan="8" style="text-align: center">
                       <a id="submitBtn" name="submitBtn" >Submit</a>
                       <a id="backBtn" name="backBtn">Back</a>
                   </td>
               </tr>
            </table>
        </s:form>
    </body>
</html>
